# -*- coding: utf-8 -*-
#
# File: SIGFS.py
#
# Copyright (c) 2006 by IBICT
# Generator: ArchGenXML Version 1.5.0
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#

__author__ = """IBICT <cadu@ibict.br>"""
__docformat__ = 'plaintext'


# Product configuration.
#
# The contents of this module will be imported into __init__.py, the
# workflow configuration and every content type module.
#
# If you wish to perform custom configuration, you may put a file
# AppConfig.py in your product's root directory. This will be included
# in this file if found.

from Products.CMFCore.CMFCorePermissions import setDefaultRoles
##code-section config-head #fill in your manual code here
##/code-section config-head


PROJECTNAME = "SIGFS"

# Check for Plone 2.1
try:
    from Products.CMFPlone.migrations import v2_1
except ImportError:
    HAS_PLONE21 = False
else:
    HAS_PLONE21 = True

# Permissions
DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
ADD_CONTENT_PERMISSIONS = {
    'EscritorioVirtualComite': 'SIGFS: Add Escritorio Virtual Comite',
    'Reuniao': 'SIGFS: Add Reuniao',
    'Ata': 'SIGFS: Add Ata',
    'Resolucao': 'SIGFS: Add Resolucao',
    'Atividade': 'SIGFS: Add Atividade',
    'TermoReferencia': 'SIGFS: Add Termo de Referencia',
    'ChamadaPublica': 'SIGFS: Add Chamada Publica',
    'Aditivo': 'SIGFS: Add Edital',
    'CartaConvite': 'SIGFS: Add Carta Convite',
    'Encomenda': 'SIGFS: Add Encomenda',
    'Documento': 'SIGFS: Add Documento',
    'AtaReservada': 'SIGFS: Add Ata Reservada',
    'DocumentoTecnico': 'SIGFS: Add Documento Tecnico',
    'EscritorioVirtualSecretaria': 'SIGFS: Add Escritorio Virtual Secretaria',
    'Proposta': 'SIGFS: Add Proposta',
    'Agrupador': 'SIGFS: Add Agrupador',
    'Acao': 'SIGFS: Add Acao',
    'Subacao': 'SIGFS: Add Subacao',
}

setDefaultRoles('SIGFS: Add Escritorio Virtual Comite', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Reuniao', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Ata', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Resolucao', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Atividade', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Termo de Referencia', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Chamada Publica', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Edital', ('Manager','Owner'))
setDefaultRoles('SIGFS: Add Carta Convite', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Encomenda', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Documento', ('Manager','Owner'))
setDefaultRoles('SIGFS: Add Ata Reservada', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Documento Tecnico', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Escritorio Virtual Secretaria', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Proposta', ('Owner','Manager','MembroProposta'))
setDefaultRoles('SIGFS: Add Agrupador', ('Owner','Manager',))
setDefaultRoles('SIGFS: Add Acao', ('Manager','Owner'))
setDefaultRoles('SIGFS: Add Subacao', ('Manager','Owner'))

product_globals = globals()

# Dependencies of Products to be installed by quick-installer
# override in custom configuration
DEPENDENCIES = []

# Dependend products - not quick-installed - used in testcase
# override in custom configuration
PRODUCT_DEPENDENCIES = []

# You can overwrite these two in an AppConfig.py:
# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
#                {'id': 'my_contenttype.css',
#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"'}]
# You can do the same with JAVASCRIPTS.
STYLESHEETS = []
JAVASCRIPTS = []

##code-section config-bottom #fill in your manual code here

DEPENDENCIES = ['CMFPublicator', 'CMFMessage', 'CMFUserTrackTool', 'DataGridField', 'Faq', \
                'Ploneboard', 'PloneChat', 'PloneLanguageTool', 'windowZ']

##/code-section config-bottom


# Load custom configuration not managed by ArchGenXML
try:
    from Products.SIGFS.AppConfig import *
except ImportError:
    pass
